<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<link href="css/estilos.css" rel="stylesheet" type="text/css">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
  <head>
    <script type="text/javascript" src="javascript/prueba.js"></script>
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    <script src="javascript/prototype.js" type="text/javascript"></script>
    <script src="javascript/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
    <script src="javascript/lightbox.js" type="text/javascript"></script>
    <style type="text/css">
        body{ color: #333; font: 13px 'Lucida Grande', Verdana, sans-serif;	}
    </style>
  </head>
    <script languaje="Javascript">
        function asignaCantidad(cruc_prov,ccod_prod) {
            ncanVent = document.forms[0].ncan_Vent.value;
//alert(document.forms[0].name);
//alert(ncanVent);
            agregar_carrito(cruc_prov,ccod_prod,ncanVent);
        }
   </script>
  <body bgcolor="#FBFBEF">
      <html:form action="/VerImagen.do">
      <html:hidden property="operacion"/>
      <table border=1 align="left" width="100%">
          <tr><td>
              <table border=0 align="left" width="100%">
                     <tr><td></td><td></td><td></td><td></td><td></td></tr>
                     <tr><td></td><td></td><td></td><td></td><td></td></tr>
                     <tr><td rowspan=8 width="300">
                             <IMG SRC="objetos/productos/<c:out value='${ccod_prod}.gif'/>"
                                  WIDTH="300" HEIGHT="300">
                         </td>
                         <td colspan="4"></td>
                         </tr>
                     <tr><td></td>
                         <td colspan="3" align=left>
                             Producto:</br>
                             <c:out value="${ccod_prod}"/>
                             <c:out value="${cruc_prov}"/>
                         </td>
                     </tr>
                     <tr><td></td>
                         <td align=left colspan="3">Nombre del producto:</br>
                         <c:out value="${cnom_prod}"/>
                         </td>
                     </tr>
                     <tr><td></td>
                         <td colspan="3" align=left>Precio:</br>
                         <c:out value="${cDes_Mone_Vent}"/>
                         <c:out value="${npre_Vent}"/>
                         </td>
                     </tr>
                     <tr><td></td>
                         <td colspan="3">Ingresar cantidad a comprar:</br>
                         <html:text property="ncan_Vent"
                                style="background-color:#FFFFFF"
                                size="5"/>
                         </td>
                         <td></td>
                     </tr>
                  </table>
          </td></tr>
          <tr><td>
                  <table>
                     <tr><td></td><td colspan="3">&nbsp;</td></tr>
                     <tr><td colspan="5">&nbsp;</td></tr>
                     <tr><td width="155">
                            <font face="Arial" size="2">
                                <c:if test="${sessionScope.txtNombUser!=null}">
                                     <font face="Arial" size="2">
                                         <a href="javascript:asignaCantidad('${requestScope.cruc_prov}','${requestScope.ccod_prod}')"
                                            class="button2">
                                            Agregar al Carrito</a>
                                     </font>
                                </c:if>
                            </font>
                         </td>
                         <td width="25"></td>
                         <td width="155">
                             <font face="Arial" size="2">
                                   <a href="javascript:buscar()" class="button2">
                                      Seguir buscando</a>
                             </font>
                         </td>
                         <td width="25"></td>
                     </tr>
                  </table>
          </td></tr>
      </table>
      </html:form>
  </body>
</html>
